package com.example.itcompanyinterview.tools;

import java.io.File;

import android.os.Environment;

public class CommonFileTools {
	
	public static String getLocalPath(String path) {
		String localSDPath =  Environment.getExternalStorageDirectory().toString();
		return localSDPath + '/' + ApplicationDefination.appName + '/' + path + '/';
	}
	
	public static File openFile(String path, String name) {
		File file = new File(path, name);
		if(file.getParentFile().exists() == false) {
			file.getParentFile().mkdirs();
		}
		return file;
	}
}
